import java.util.Arrays;

public class Text {
    public static void main1(String[] args) {
        int[] arr = {1,6,2,6,3,4,5,8,1,2,6,3,4,6,8,0,9};
        Sort.countSort(arr);
        System.out.println(Arrays.toString(arr));
    }

    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        binarySearchTree.insert(34);
        binarySearchTree.insert(46);
        binarySearchTree.insert(26);
        binarySearchTree.insert(29);
        binarySearchTree.insert(62);
        BinarySearchTree.TreeNode ret = binarySearchTree.find(26);
        System.out.println(ret.val);
        binarySearchTree.inOrder(binarySearchTree.root);
        System.out.println();
        binarySearchTree.remove(29);
        binarySearchTree.inOrder(binarySearchTree.root);
    }

    public static void main3(String[] args) {
        int a = 6;
        int b = 3;
        if(a == 0){
            System.out.println("a=0");
        }else if(b == 0){
            System.out.println("b=0");
        }else{
            System.out.println("a!=0,b!=0");
        }
    }
}
